package datastructures;

import java.util.Random;
import node.AVLNode;
import structure.AVLTree;

/**
 *
 * @author Vojta
 */
public class AVLTreeMain {

    public static void main(String[] args) {
        AVLTree at = new AVLTree();
        Random r = new Random();
        for (int i = 0; i < 255; i++) {
//            AVLNode n = new AVLNode(r.nextInt(10000));
            AVLNode n = new AVLNode(i);
            at.add(n);
        }
        System.out.println(at);
        System.out.println("Number of nodes: " + at.size());
    }
}
